import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Index from '@/components/index/Index'
import Drop from '@/components/index/drop/Drop'
import Diary from '@/components/index/diary/Diary'

Vue.use(Router);


const vrouter = new Router({
	mode:'history',
	routes: [
    {
    	path:"/",
    	component:Home,
    	children: [
    		{
    			path:"/",
    			component:Index,
    		}
    	]
    },
    {
    	path:"/",
    	component:Home,
    	children: [
    		{
    			path:'drop',
    			component:Drop
    		},
    		{
    			path:'diary',
    			component:Diary
    		}
    	]
    }    
  ]
})

export default vrouter

